package com.lywz.biz.common.entity.goodfood;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

@Entity
@EntityAnnotation
//@NamedNativeQueries(
//        @NamedNativeQuery(
//                name = "restaurant.getListByClassicFoodId", 
//                query = "select * from t_restaurant t_r where restaurantId in (SELECT restaurantId from t_restaurantClassicFood t_rc WHERE t_rc.classicFoodId =:classicFoodId)",
//                resultSetMapping = "restaurant"))
//@SqlResultSetMappings(@SqlResultSetMapping(name = "restaurant", entities = { @EntityResult(entityClass = com.lywz.biz.common.entity.goodfood.Restaurant.class) }))

@Table(name = "t_restaurant")
public class Restaurant extends AbstractEntity {

    private static final long serialVersionUID = -1761735562963494618L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer restaurantId;

    private String imageUrl;

    private String name;

    private String address;

    private Date addTime;

    private Integer isShowInMain;

    public Date getAddTime() {
        return addTime;
    }

    public Integer getIsShowInMain() {
        return isShowInMain;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public void setIsShowInMain(Integer isShowInMain) {
        this.isShowInMain = isShowInMain;
    }

    public Integer getRestaurantId() {
        return restaurantId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public void setRestaurantId(Integer restaurantId) {
        this.restaurantId = restaurantId;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

}
